package com.cdks.wuxiu.api.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdks.wuxiu.entity.mysql.DailyUserInfo;

/**
 * 每日用户信息 Mapper 接口
 */
public interface DailyUserInfoMapper extends BaseMapper<DailyUserInfo> {
    int addCallInCount( @Param("date") Date date, @Param("userId") long userId);
    int addAnswerCount( @Param("date") Date date, @Param("userId") long userId);
    int addAnswerTime( @Param("date") Date date, @Param("userId") long userId, @Param("duration") long duration);
    int setIdleTime( @Param("date") Date date, @Param("userId") long userId, @Param("time") long time);
    int updateAnswerInfo( @Param("date") Date date, @Param("userId") long userId, @Param("duration") long duration);

    List<DailyUserInfo> getStatisList(@Param("userId") long userId);
}
